package com.secxiot.provider.system.entity;

import java.io.Serializable;
import java.util.Date;

public class AppVersion implements Serializable {
    private Long id;

    /**
     * 平台类型，字典00011
     */
    private String platform;

    /**
     * 客户端类型，患者端：patient 医生端：doctor
     */
    private String clientType;

    /**
     * 版本序号
     */
    private Integer version;

    /**
     * 更新地址
     */
    private String url;

    /**
     * 前台显示版本号
     */
    private String versionDisplay;

    /**
     * 是否强制更新，0：否 1：是
     */
    private Integer compulsoryFlag;

    /**
     * 有效标识，0：否 1：是
     */
    private Integer valid;

    private String remark;

    private Date createTime;

    private Long createUser;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform == null ? null : platform.trim();
    }

    public String getClientType() {
        return clientType;
    }

    public void setClientType(String clientType) {
        this.clientType = clientType == null ? null : clientType.trim();
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public String getVersionDisplay() {
        return versionDisplay;
    }

    public void setVersionDisplay(String versionDisplay) {
        this.versionDisplay = versionDisplay == null ? null : versionDisplay.trim();
    }

    public Integer getCompulsoryFlag() {
        return compulsoryFlag;
    }

    public void setCompulsoryFlag(Integer compulsoryFlag) {
        this.compulsoryFlag = compulsoryFlag;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", platform=").append(platform);
        sb.append(", clientType=").append(clientType);
        sb.append(", version=").append(version);
        sb.append(", url=").append(url);
        sb.append(", versionDisplay=").append(versionDisplay);
        sb.append(", compulsoryFlag=").append(compulsoryFlag);
        sb.append(", valid=").append(valid);
        sb.append(", remark=").append(remark);
        sb.append(", createTime=").append(createTime);
        sb.append(", createUser=").append(createUser);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}